#include <iostream>
#include <ostream>
#include <vector>
//
// Created by lingzhitech on 25-9-23.
//
int main() {
    std::vector<int> vec = {1, 2, 3, 4, 5, 6, 1, 8, 9, 1, 42};
    auto count = std::count(vec.cbegin(), vec.cend(), 1);
    std::cout << "The count " << count << std::endl;
}